package io.legado.app.utils

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlin.coroutines.CoroutineContext

object MyCoroutineScope : CoroutineScope{
    private val job= Job()
    override val coroutineContext: CoroutineContext
        get() = Dispatchers.IO + job

    fun close() {job.cancel()}
}